package org.netty.push.core.proto.handler;

import org.netty.push.core.proto.PingRequestMsg;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.netty.channel.ChannelHandlerContext;
public class PingHandler implements MessageHandler<PingRequestMsg> {
	private static Logger logger = LoggerFactory.getLogger(PingHandler.class);

	@Override
	public void handle(ChannelHandlerContext ctx, PingRequestMsg msg) {
		logger.debug(" msg is {}", msg);
	}

	@Override
	public boolean supported(Object msg) {
		return PingRequestMsg.class.isAssignableFrom(msg.getClass());
	}

}
